import request from '@/utils/request'

// 查询任务日志列表
export function listExec(query) {
  return request({
    url: '/gbase/exec/list',
    method: 'get',
    params: query
  })
}

// 查询任务日志详细
export function getExec(procExecDt) {
  return request({
    url: '/gbase/exec/' + procExecDt,
    method: 'get'
  })
}

// 新增任务日志
export function addExec(data) {
  return request({
    url: '/gbase/exec',
    method: 'post',
    data: data
  })
}

// 修改任务日志
export function updateExec(data) {
  return request({
    url: '/gbase/exec',
    method: 'put',
    data: data
  })
}

// 删除任务日志
export function delExec(procExecDt) {
  return request({
    url: '/gbase/exec/' + procExecDt,
    method: 'delete'
  })
}
